﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.AutomaticInterferenceVolumeCreation.DataGridItem
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Media;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.AutomaticInterferenceVolumeCreation;

internal class DataGridItem
{
  public ImageSource ValidityIcon { get; set; }

  public ImageSource ObjectIcon { get; set; }

  public string ObjectName { get; set; }

  public ITxObject OperationProgramObject { get; set; }

  public string ValidityIconToolTip { get; set; }

  internal DataGridItem(ImageSource vi, ImageSource oi, string on, ITxObject obj, string vitt)
  {
    this.ValidityIcon = vi;
    this.ObjectIcon = oi;
    this.ObjectName = on;
    this.OperationProgramObject = obj;
    this.ValidityIconToolTip = vitt;
  }

  public override bool Equals(object obj)
  {
    return obj is DataGridItem dataGridItem && dataGridItem.OperationProgramObject.Id.Equals(this.OperationProgramObject.Id);
  }
}
